package com.li.springbootproject.controller.test;

import com.li.springbootproject.config.requestlimit.LimitFlag;
import com.li.springbootproject.service.test.TestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2022/1/10 8:45
 */
@RestController
@RequestMapping("/request")
public class RequestController {

    private static final Logger logger = LoggerFactory.getLogger(RestController.class);

    @Autowired
    private TestService testService;


    @LimitFlag
    @GetMapping("/test2")
    public String test2() throws InterruptedException {
        return testService.testSix();
    }


}
